﻿namespace Gmantis.Controls.Chart
{
    public class ScaleAction : Action
    {
        // Fields
        private double _wheelFactor;

        // Methods
        public ScaleAction()
            : base(ActionType.Scale)
        {
            this._wheelFactor = 0.25;
        }

        // Properties
        public MouseWheelDirection MouseWheelDirection { get; set; }

        public double MouseWheelFactor
        {
            get
            {
                return this._wheelFactor;
            }
            set
            {
                this._wheelFactor = value;
            }
        }

        internal override bool SupportMouseWheel
        {
            get
            {
                return (this.MouseWheelDirection != MouseWheelDirection.None);
            }
        }
    }
}
